package avicit.bdp.dms.das.dto;

import java.util.List;

/**
 * @author mayanj
 * 表结构比对返回体
 */
public class TableCompareResponseDTO {

    /**
     * 模型ID
     */
    private String id;

    /**
     * 模型名
     */
    private String tableName;

    /**
     * 表对比结果
     *
     */
    private Boolean tableSame;

    /**
     * 模型关联数据源ID
     */
    private String dataSourceId;

    /**
     * 模型关联数据源名称
     */
    private String dataSourceName;

    /**
     * 模型关联数据源类型
     */
    private String dataSourceType;

    /**
     * 结果描述
     */
    private String result;

    /**
     * 模型是否存在
     */
    private boolean modelExist = true;

    /**
     * 数据库是否存在
     */
    private boolean databaseExist = true;

    /**
     * 是否可选
     * 1可选 0不可选
     */
    private Boolean enable = true;

    /**
     * 字段比对结果
     */
    private List<ColumnCompareResponseDTO> comparisonResult;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getTableName() {
        return tableName;
    }

    public void setTableName(String tableName) {
        this.tableName = tableName;
    }

    public Boolean getTableSame() {
        return tableSame;
    }

    public void setTableSame(Boolean tableSame) {
        this.tableSame = tableSame;
    }

    public List<ColumnCompareResponseDTO> getComparisonResult() {
        return comparisonResult;
    }

    public void setComparisonResult(List<ColumnCompareResponseDTO> comparisonResult) {
        this.comparisonResult = comparisonResult;
    }

    public String getResult() {
        return result;
    }

    public void setResult(String result) {
        this.result = result;
    }

    public Boolean getEnable() {
        return enable;
    }

    public void setEnable(Boolean enable) {
        this.enable = enable;
    }

    public boolean isModelExist() {
        return modelExist;
    }

    public void setModelExist(boolean modelExist) {
        this.modelExist = modelExist;
    }

    public boolean isDatabaseExist() {
        return databaseExist;
    }

    public void setDatabaseExist(boolean databaseExist) {
        this.databaseExist = databaseExist;
    }

    public String getDataSourceName() {
        return dataSourceName;
    }

    public void setDataSourceName(String dataSourceName) {
        this.dataSourceName = dataSourceName;
    }

    public String getDataSourceId() {
        return dataSourceId;
    }

    public void setDataSourceId(String dataSourceId) {
        this.dataSourceId = dataSourceId;
    }

    public String getDataSourceType() {
        return dataSourceType;
    }

    public void setDataSourceType(String dataSourceType) {
        this.dataSourceType = dataSourceType;
    }

    @Override
    public String toString() {
        return "TableCompareResponseDTO { "
                + "id='" + id + '\''
                + "tableName='" + tableName + '\''
                + ", tableSame='" + tableSame + '\''
                + ", columnCompareResult=" + comparisonResult
                + ", result=" + result
                + '}';
    }
}
